/*
 * pwm.h
 *
 * Created: 18/07/2011 13:54:07
 *  Author: guy
 */ 


#ifndef PWM_H_
	#define PWM_H_

	#include <stdint.h>

	/*
	 * exported functions
	 */
	void	pwm_init();
	void	calibrateSticks();
	void    pwm_out_set(uint8_t ch, int16_t v);
	int16_t pwmInRaw(uint8_t ch);
	int16_t pwmInDelta(uint8_t ch);
	int16_t pwmInBias(uint8_t ch);
	void	setupPWMs();

#endif /* PWM_H_ */
